<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <!--样式引入-->
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/resources/commons/css/reset.css">
    <!--图标字体-->
    <link rel="stylesheet" href="/resources/commons/font/icon.css">
</head>
<body>
<jsp:include page="/views/common/header.jsp"/>
<hr>
<div class="details-wrapper">
    <div class="commodity-info-wrapper">
        <div class="commodity-active">
            <img src="${commodity.commodityPic}" alt="">
        </div>
        <div class="commodity-info">
            <h1 class="title">${commodity.title}</h1>
            <p class="price">${commodity.price}</p>
            <div class="add-wrapper">
                <input type="number" name="count" min="1" value="1">
                <a class="layui-btn">加入购物车</a>
            </div>
        </div>
    </div>
    <div class="commodity-pic">
        <c:forEach items="${commodity.commodityPics}" var="its">
            <img src="${its.imgSrc}" alt="">
            <hr>
        </c:forEach>
    </div>
</div>

<!--js引入-->
<script src="/static/layui/layui.js"></script>
<script src="/static/jQuery/jquery-2.1.1.js"></script>
<script src="/resources/commons/js/base.js"></script>
<script src="/resources/commons/font/icon.js"></script>
</body>
</html>
